﻿@using Advance.Mvc.Models;
@model ConsentVm;
@{
    ViewData["Title"] = "Index";
}

<div class="row">
    <div class="col-md-10 page-header">

        @if (!string.IsNullOrWhiteSpace(Model.ClientLogoUrl))
        {
            <img src="@Model.ClientLogoUrl" alt="Client Logo" />
        }
        <h2>@Model.ClientName <small>希望使用您的账户</small></h2>
    </div>

</div>
<div class="row">
    <div class="col-md-8 page-header">
        <h1>应用权限</h1>
        <form class="form-horizontal" asp-action="Index" method="post" >
            @Html.AntiForgeryToken();
            <input type="hidden" asp-for="ReturlUrl"/>
            <ul class="list-group">
                @foreach (var item in Model.IdentityScopes)
                {
                    @Html.Partial("~/Views/Consent/_SelectListItem.cshtml", item);
                }
                @foreach (var item in Model.ResourceScopes)
                {
                    @Html.Partial("~/Views/Consent/_SelectListItem.cshtml", item);
                }
            </ul>
            <label><input type="checkbox" value="" name="RememberConsent" /><strong>记住我的选择</strong></label>
            <button value="yes" name="button"  class="btn btn-success">确定授权</button>
            <button value="no" name="button" class="btn btn-default">取消</button>
        </form>
    </div>
</div>

